// import HomeView from '@/views/HomeView.vue'
// import NotFind from '@/views/notFind.vue'
// import SearchView from '@/views/SearchView.vue'
import {createRouter, createWebHashHistory, createWebHistory} from 'vue-router'

const router = createRouter({
  // history: createWebHashHistory(),
  history: createWebHistory(),
  routes: [
    {path: '/find', component: () => import('@/views/find.vue')},
    {path: '/my', component: () => import('@/views/my.vue')},
    {path: '/friend', component: () => import('@/views/friend.vue')},
    {path:'/home',component:()=>import('@/views/HomeView.vue')},
    // {path:'/search/:keyword?',component:SearchView},
    {path: '/', redirect: '/home'},
    {path: '/:pathMatch(.*)*', component:()=>import('@/views/notFind.vue')},
    {name:'search',path:'/search/:keyword?',component:()=>import('@/views/SearchView.vue')}
  ]
})

export default router